<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      6.45.&nbsp;Xz-5.2.3
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.78.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  </head>
  <body class="lfs" id="lfs-8.0-systemd">
    <div class="navheader">
      <h4>
        Linux From Scratch - Version 8.0-systemd
      </h4>
      <h3>
        Chapter&nbsp;6.&nbsp;Installing Basic System Software
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="automake.html" title=
          "Automake-1.15">Prev</a>
          <p>
            Automake-1.15
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="kmod.html" title="Kmod-23">Next</a>
          <p>
            Kmod-23
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="chapter06.html" title=
          "Chapter&nbsp;6.&nbsp;Installing Basic System Software">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Linux From Scratch - Version 8.0-systemd">Home</a>
        </li>
      </ul>
    </div>
    <div class="wrap" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="ch-system-xz" name="ch-system-xz"></a>6.45. Xz-5.2.3
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <p>
          The Xz package contains programs for compressing and decompressing
          files. It provides capabilities for the lzma and the newer xz
          compression formats. Compressing text files with <span class=
          "command"><strong>xz</strong></span> yields a better compression
          percentage than with the traditional <span class=
          "command"><strong>gzip</strong></span> or <span class=
          "command"><strong>bzip2</strong></span> commands.
        </p>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Approximate build time:</strong>
              <span class="segbody">0.2 SBU</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Required disk space:</strong>
              <span class="segbody">15 MB</span>
            </div>
          </div>
        </div>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          6.45.1. Installation of Xz
        </h2>
        <p>
          Prepare Xz for compilation with:
        </p>
        <pre class="userinput">
<kbd class="command">./configure --prefix=/usr    \
            --disable-static \
            --docdir=/usr/share/doc/xz-5.2.3</kbd>
</pre>
        <p>
          Compile the package:
        </p>
        <pre class="userinput">
<kbd class="command">make</kbd>
</pre>
        <p>
          To test the results, issue:
        </p>
        <pre class="userinput">
<kbd class="command">make check</kbd>
</pre>
        <p>
          Install the package and make sure that all essential files are in
          the correct directory:
        </p>
        <pre class="userinput">
<kbd class="command">make install
mv -v   /usr/bin/{lzma,unlzma,lzcat,xz,unxz,xzcat} /bin
mv -v /usr/lib/liblzma.so.* /lib
ln -svf ../../lib/$(readlink /usr/lib/liblzma.so) /usr/lib/liblzma.so</kbd>
</pre>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          <a id="contents-xz" name="contents-xz"></a>6.45.2. Contents of Xz
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed programs:</strong>
              <span class="segbody">lzcat (link to xz), lzcmp (link to
              xzdiff), lzdiff (link to xzdiff), lzegrep (link to xzgrep),
              lzfgrep (link to xzgrep), lzgrep (link to xzgrep), lzless (link
              to xzless), lzma (link to xz), lzmadec, lzmainfo, lzmore (link
              to xzmore), unlzma (link to xz), unxz (link to xz), xz, xzcat
              (link to xz), xzcmp (link to xzdiff), xzdec, xzdiff, xzegrep
              (link to xzgrep), xzfgrep (link to xzgrep), xzgrep, xzless, and
              xzmore</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed libraries:</strong>
              <span class="segbody">liblzma.so</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed directories:</strong>
              <span class="segbody">/usr/include/lzma and
              /usr/share/doc/xz-5.2.3</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="lzcat" name="lzcat"></a><span class=
                    "term"><span class=
                    "command"><strong>lzcat</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    Decompresses to standard output
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="lzcmp" name="lzcmp"></a><span class=
                    "term"><span class=
                    "command"><strong>lzcmp</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    Runs <span class="command"><strong>cmp</strong></span> on
                    LZMA compressed files
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="lzdiff" name="lzdiff"></a><span class=
                    "term"><span class=
                    "command"><strong>lzdiff</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    Runs <span class="command"><strong>diff</strong></span>
                    on LZMA compressed files
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="lzegrep" name="lzegrep"></a><span class=
                    "term"><span class=
                    "command"><strong>lzegrep</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    Runs <span class="command"><strong>egrep</strong></span>
                    on LZMA compressed files
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="lzfgrep" name="lzfgrep"></a><span class=
                    "term"><span class=
                    "command"><strong>lzfgrep</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    Runs <span class="command"><strong>fgrep</strong></span>
                    on LZMA compressed files
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="lzgrep" name="lzgrep"></a><span class=
                    "term"><span class=
                    "command"><strong>lzgrep</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    Runs <span class="command"><strong>grep</strong></span>
                    on LZMA compressed files
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="lzless" name="lzless"></a><span class=
                    "term"><span class=
                    "command"><strong>lzless</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    Runs <span class="command"><strong>less</strong></span>
                    on LZMA compressed files
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="lzma" name="lzma"></a><span class=
                    "term"><span class=
                    "command"><strong>lzma</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    Compresses or decompresses files using the LZMA format
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="lzmadec" name="lzmadec"></a><span class=
                    "term"><span class=
                    "command"><strong>lzmadec</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    A small and fast decoder for LZMA compressed files
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="lzmainfo" name="lzmainfo"></a><span class=
                    "term"><span class=
                    "command"><strong>lzmainfo</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    Shows information stored in the LZMA compressed file
                    header
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="lzmore" name="lzmore"></a><span class=
                    "term"><span class=
                    "command"><strong>lzmore</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    Runs <span class="command"><strong>more</strong></span>
                    on LZMA compressed files
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="unlzma" name="unlzma"></a><span class=
                    "term"><span class=
                    "command"><strong>unlzma</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    Decompresses files using the LZMA format
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="unxz" name="unxz"></a><span class=
                    "term"><span class=
                    "command"><strong>unxz</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    Decompresses files using the XZ format
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="xz" name="xz"></a><span class="term"><span class=
                    "command"><strong>xz</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    Compresses or decompresses files using the XZ format
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="xzcat" name="xzcat"></a><span class=
                    "term"><span class=
                    "command"><strong>xzcat</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    Decompresses to standard output
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="xzcmp" name="xzcmp"></a><span class=
                    "term"><span class=
                    "command"><strong>xzcmp</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    Runs <span class="command"><strong>cmp</strong></span> on
                    XZ compressed files
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="xzdec" name="xzdec"></a><span class=
                    "term"><span class=
                    "command"><strong>xzdec</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    A small and fast decoder for XZ compressed files
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="xzdiff" name="xzdiff"></a><span class=
                    "term"><span class=
                    "command"><strong>xzdiff</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    Runs <span class="command"><strong>diff</strong></span>
                    on XZ compressed files
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="xzegrep" name="xzegrep"></a><span class=
                    "term"><span class=
                    "command"><strong>xzegrep</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    Runs <span class="command"><strong>egrep</strong></span>
                    on XZ compressed files files
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="xzfgrep" name="xzfgrep"></a><span class=
                    "term"><span class=
                    "command"><strong>xzfgrep</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    Runs <span class="command"><strong>fgrep</strong></span>
                    on XZ compressed files
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="xzgrep" name="xzgrep"></a><span class=
                    "term"><span class=
                    "command"><strong>xzgrep</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    Runs <span class="command"><strong>grep</strong></span>
                    on XZ compressed files
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="xzless" name="xzless"></a><span class=
                    "term"><span class=
                    "command"><strong>xzless</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    Runs <span class="command"><strong>less</strong></span>
                    on XZ compressed files
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="xzmore" name="xzmore"></a><span class=
                    "term"><span class=
                    "command"><strong>xzmore</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    Runs <span class="command"><strong>more</strong></span>
                    on XZ compressed files
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="liblzma" name="liblzma"></a><span class=
                    "term"><code class="filename">liblzma</code></span>
                  </p>
                </td>
                <td>
                  <p>
                    The library implementing lossless, block-sorting data
                    compression, using the Lempel-Ziv-Markov chain algorithm
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="automake.html" title=
          "Automake-1.15">Prev</a>
          <p>
            Automake-1.15
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="kmod.html" title="Kmod-23">Next</a>
          <p>
            Kmod-23
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="chapter06.html" title=
          "Chapter&nbsp;6.&nbsp;Installing Basic System Software">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Linux From Scratch - Version 8.0-systemd">Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
